import React from "react";
import { Image, StyleSheet, Text, View } from "react-native";

export default ({icons,tips}) => {

    return (
        <View style={styles.root}>
        
        <Image source={icons} style = {styles.img}></Image>
        <Text style = {styles.title}>{tips}</Text>
        </View>
    );
}

const styles = StyleSheet.create({
    root:{
        width:"100%",
        height:'100%',
        justifyContent:'center',
        alignItems:'center',
        // backgroundColor:'red',
        marginTop:30,
        padding:30
    },
    img:{
        height:96,
        width:96,
        resizeMode:'contain'
    },
    title:{
        fontSize:14,
        color:'#bbb',
        marginTop:14
    }
    
});